package com.ch.design;

/**
 * 奔驰类
 */
public class BenzModel extends CarModel {
    @Override
    protected void alarm() {
        System.out.println("奔驰车的喇叭声音是这个样子的...");
    }

    @Override
    protected void engineBoom() {
        System.out.println("奔驰车的引擎是这个声音的...");
    }

    @Override
    protected void start() {
        System.out.println("奔驰车跑起来是这个样子的...");
    }

    @Override
    protected void stop() {
        System.out.println("奔驰车应该这样停车...");
    }

    public static BenzBuilder builder() {
        return new BenzBuilder();
    }

    public static class BenzBuilder extends CarBuilder {
        @Override
        public BenzModel build() {
            BenzModel benz = new BenzModel();
            benz.setSequence(super.sequence);
            return benz;
        }
    }
}